//
//  JMUserModel.m
//  JMBaseProject
//
//  Created by Liuny on 2020/1/3.
//  Copyright © 2020 liuny. All rights reserved.
//

#import "JMUserModel.h"

@implementation JMUserModel

-(instancetype)initWithDictionary:(NSDictionary *)dict{
    self = [super init];
    if(self){
        self.userId = [dict getJsonValue:@"accountId"];
//        self.isMe = [dict getJsonValue:@"isMyself"].boolValue;
        self.name = [dict getJsonValue:@"nick"];
        self.headUrl = [dict getJsonValue:@"avatar"];

        self.backUrl = [dict getJsonValue:@"backgroundPic"];
        self.desc = [dict getJsonValue:@"desc"];
        self.age = [dict getJsonValue:@"age"];
        self.sex = [dict getJsonValue:@"sex"].integerValue;
        self.isAttention = [dict getJsonValue:@"isFocus"].boolValue;
        self.fansNum = [dict getJsonValue:@"followMeCount"];
        self.attentionNum = [dict getJsonValue:@"myFollowCount"];
        self.readnum = [dict getJsonValue:@"readnum"];
        self.address = [dict getJsonValue:@"address"];
    }
    return self;
}

-(instancetype)initWithTest{
    self = [super init];
    if(self){
    }
    return self;
}


@end
